define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			withdraw: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.advance.withdraw';

				//post请求
				Http.post(param, callback, error, done);
			},

			get_rechargepayment: function(param, callback, error, done) {

				param = param || {}
				param.method = 'payment.mobilepay.createrechargepayment',

				//post请求
				Http.post(param, callback, error, done);
			},

			recharge: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.advance.recharge';

				//post请求
				Http.post(param, callback, error, done);
			},

			search: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.advance.search';

				//post请求
				Http.post(param, callback, error, done);
			},

			getAccinfos: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.advance.getAccinfos';

				//post请求
				Http.post(param, callback, error, done);
			},
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Predeposit", factory);
});